<?php
$checklist = get_input('check_list');
$message = "checked: ";
foreach ($checklist as $check){
	$project = get_entity($check);
	if($project){
		$student = elgg_get_logged_in_user_entity();
		$student->addRelationship($project->guid, "showedproject");
	}
}
system_message($message);